import { deepClone } from "./utils";

const cache = [];

export const getCache = () => {
  return deepClone(cache);
};

export const addCache = (data) => {
  cache.push(data);
};

export const clearCache = () => {
  cache.length = 0;
};
